package com.dsmclub.myfootballds;

import java.util.ArrayList;

public class Scores {
	public class ScoreRecord {
		public String 	time;
		public Team 	team1;
		public String 	score;
		public Team		team2;
		
		public ScoreRecord(String time, Team team1, String score, Team team2) {
			this.time = time;
			this.team1 = team1;
			this.score = score;
			this.team2 = team2;
		}
	}
	
	public class Team {
		public int		id;
		public String 	name;
		public int 		logo;
		
		public Team(int id, String name, int logo) {
			this.id = id;
			this.name = name;
			this.logo = logo;
		}
		
		public Team(int id, String name) {
			this.id = id;
			this.name = name;
			this.logo = -1;
		}
	}
	
	private static ArrayList<ScoreRecord> mScores = new ArrayList<ScoreRecord>();
	private static Scores mInstance = null;
	
	public static Scores instance()
	{
		if (mInstance == null)
		{
			mInstance = new Scores();
		}
		
		return mInstance;
	}
	
	public ArrayList<ScoreRecord> scores()
	{
		return mScores;
	}
	
	private Scores()
	{
		mScores.add(new ScoreRecord("14:00", new Team("Dynamo", R.drawable.fc_dynamo_kyiv), "1:1", new Team("Vorskla", R.drawable.fc_vorskla)));
		mScores.add(new ScoreRecord("17:00", new Team("Dnipro", R.drawable.fc_dnipro_dnipropetrovsk), "2:0", new Team("Chornomorets", R.drawable.fc_chornomorets)));
		mScores.add(new ScoreRecord("21:00", new Team("Shakhtar", R.drawable.fc_shakhtar), "1:2", new Team("Karpaty", R.drawable.fc_karpaty_lviv)));
		mScores.add(new ScoreRecord("23:00", new Team("Android-Balls"), "1:2", new Team("Android-Terminators")));
	}
}

